package edu.jd.software.web.backend.dao;

import edu.jd.software.web.backend.model.PmsBrand;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PmsBrandDao {

    PmsBrand selectByIdSimple(Long id);

    PmsBrand selectById(Long id);

    List<PmsBrand> selectByIds(@Param("ids") List<Long> ids);

    int insert(PmsBrand entity);

    int insertBatch(@Param("entityList") List<PmsBrand> brandList);

    int updateById(PmsBrand entity);

    int updateByIdSelective(PmsBrand entity);

    int deleteById(Long id);

    List<PmsBrand> selectByNameAndStoryLike(@Param("name") String name,@Param("brand_story") String brand_story);

    List<PmsBrand> selectByNameAndStoryLike2(@Param("name") String name,@Param("brand_story") String brand_story);

    List<PmsBrand> selectByNameAndStoryLike3(@Param("name") String name,@Param("brand_story") String brand_story);

}
